package com.easytopit.hibernate.demo.hibernate_oneVSn;

public class Order {
	private int OrderId;
	private String  orderName;

	private User user;
	

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getOrderId() {
		return OrderId;
	}

	public void setOrderId(int orderId) {
		OrderId = orderId;
	}

	public String getOrderName() {
		return orderName;
	}

	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}
	
	@Override
	public String toString() {
		return "Order [OrderId=" + OrderId + ", orderName=" + orderName + ", user=" + user + "]";
	}	
}
